package com.leetroll.api.service.impl;

import com.leetroll.api.mapper.IssueMapper;
import com.leetroll.api.service.IssueService;
import com.leetroll.common.entity.Issue;

import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class IssueServiceImpl extends SuperServiceImpl<IssueMapper, Issue> implements IssueService {

    @Override
    @Cacheable(cacheNames = "listIssue")
    public List<Issue> list(String subject, String keyword, Integer pageNumber, Integer pageSize) {
        return this.baseMapper.list(subject, keyword);
    }
}
